<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>form提交post数据</title>
</head>
<body>
<center>
    @if (count($errors) > 0)
        <div class="alert alert-danger">
            <ul>
                @foreach ($errors->all() as $error)
                    <ol>{{ $error }}</ol>
                @endforeach
            </ul>
        </div>
    @endif
    <form action="/index/front/formPost" method="post">
        username:<input type="text" name="username" value=""><br>
        password:<input type="text" name="password" value=""><br>
        age:<input type="text" name="age" value=""><br>
        email:<input type="text" name="email" value=""><br>
        {{ csrf_field() }}
        <input type="submit" value="提交">
    </form>
</center>
</body>
</html>